package com.weiweiqin.dao;

import java.util.List;

import com.weiweiqin.model.Goods;
import com.weiweiqin.model.GoodsCategoryItem;
import com.weiweiqin.model.GoodsPicItem;
import com.weiweiqin.model.Pic;

public interface GoodsDao extends GenericDao<Goods, Integer> {
	List<Goods> getListByCategoryId(int categoryId);

	List<Pic> getPicListById(int id);

	List<GoodsPicItem> getPicItemListById(int id);

	GoodsCategoryItem getCategoryItemById(int id);

	List<Goods> getAll();

	List<Goods> getByPicName(String picName);

	List<Goods> getByName(String title);

	String getKeysById(int id);

	List<Pic> getTitlePicListById(int id);
	
	int staticSign(int goodsId,String startDate,String endDate,int stataus1,int status2);
}
